package com.blogSystem.article.dao;

import com.blogSystem.article.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface ArticleMapper {
    int insert(Article article);
    int deleteById(String id);
    int deleteByIds(List<String> list);
    List<Article> selectAll();
    Article selectById(String id);
    List<Article> selectByAuthorId(String author);
    List<Article> selectByTitle(String title);
    int update(Article article);
}
